do not call _gtk_text_btree_get_iter_at_line() and
authorYevgen Muntyan <muntyan@tamu.edu>
Thu, 15 Nov 2007 16:24:42 +0000 (16:24 +0000)
committerYevgen Muntyan <muntyan@src.gnome.org>
Thu, 15 Nov 2007 16:24:42 +0000 (16:24 +0000)
commita3eb6a98d7a497b1f8bb5a73d497ce673d942837
treec1c0bb8ccc35d8426651cf403334767ed1f3d18d
parentaa8329533f3eb7ceaa7b03ee0535acf4cff9663e
do not call _gtk_text_btree_get_iter_at_line() and

2007-11-15  Yevgen Muntyan  <muntyan@tamu.edu>

* gtk/gtktextlayout.c: (gtk_text_layout_get_line_display),
(get_style): do not call _gtk_text_btree_get_iter_at_line() and
_gtk_text_btree_get_tags() for every segment, instead call them
once and then collect the tags while iterating over the segments.
(get_tags_array_at_iter), (tags_array_toggle_tag): new functions
for tags array handling.

svn path=/trunk/; revision=18994
ChangeLog
gtk/gtktextlayout.c